package com.tansun.easycare.rule.common.web;

import java.util.Map;
import java.util.Set;

import org.springframework.ui.ModelMap;

import com.alibaba.fastjson.JSON;

public class WebConvertUtil {


    public static void mapConvertModelMap(Map<String, Object> map, ModelMap modelMap) {
        if (map != null) {
            Set<String> keys = map.keySet();
            for (String key : keys) {
                modelMap.put(key, JSON.toJSONString(map.get(key)));
            }
        }
    }

}
